//统一管理相关的接口
import request from "@/utils/request";

//统一管理接口
enum API {
    
    temp_url = "/itp/index/template",
}
export default {
    getTempList: (current: number, size: number,param: any) => request.post(`${API.temp_url}?current=${current}&size=${size}`, param),
    updateTempList: ( param: any) => request.post(`${API.temp_url}/save`, param),
    delTemp: (id: number) => request.delete(`${API.temp_url}/delete?id=${id}`),
    postTempById: (param: any) => request.post(`${API.temp_url}/query/detail`,param),
    postRiskIndex: (current: number, size: number,param: any) => request.post(`${API.temp_url}/riskIndex?current=${current}&size=${size}`, param),
    updateIndexList: ( param: any) => request.post(`${API.temp_url}/saveDetail`, param),
    delIndex: (param: any) => request.post(`${API.temp_url}/deleteDetail`, param),
    postIndexById: (param: any) => request.post(`/itp/index/management/select`,param),
    postTempReport: (param: any) => request.post(`${API.temp_url}/query/report`,param),
    getTempDetail: (detailId:number) => request.get(`${API.temp_url}/query/detail/id?detailId=${detailId}`),
    putTempReportRemark: (param: any) => request.put(`${API.temp_url}/query/report/remark`,param),
    postIndexCalc: (param: any) => request.post('/itp/index/calc/batch',param)
}